Skip to content

release: 0.1.0-alpha.2#7

Closed
stainless-app[bot] wants to merge 2 commits into
mainfrom
release-please--branches--main--changes--next--components--nodes-sdk-alpha
Closed

release: 0.1.0-alpha.2#7
stainless-app[bot] wants to merge 2 commits into
mainfrom
release-please--branches--main--changes--next--components--nodes-sdk-alpha

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app Bot commented Jul 22, 2025

Automated Release PR

0.1.0-alpha.2 (2025-07-22)

Full Changelog: v0.1.0-alpha.1...v0.1.0-alpha.2

Chores


This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions

@semanticdiff-com
Copy link
Copy Markdown

semanticdiff-com Bot commented Jul 22, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  tests/api-resources/nodes.test.ts  59% smaller
  tests/api-resources/vms/script.test.ts  59% smaller
  tests/api-resources/vms/vms.test.ts  59% smaller
  tests/stringifyQuery.test.ts  59% smaller
  package.json  52% smaller
  tsconfig.json  47% smaller
  tsconfig.build.json  47% smaller
  tests/index.test.ts  43% smaller
  .stats.yml  29% smaller
  jest.config.ts  18% smaller
  .github/workflows/publish-npm.yml  0% smaller
  .github/workflows/release-doctor.yml  0% smaller
  .release-please-manifest.json  0% smaller
  CHANGELOG.md Unsupported file format
  CONTRIBUTING.md Unsupported file format
  README.md Unsupported file format
  bin/check-release-environment Unsupported file format
  eslint.config.mjs  0% smaller
  scripts/build Unsupported file format
  src/version.ts  0% smaller
  tests/base64.test.ts  0% smaller
  tests/buildHeaders.test.ts  0% smaller
  tests/form.test.ts  0% smaller
  tests/path.test.ts  0% smaller
  tests/uploads.test.ts  0% smaller

@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app Bot commented Jul 22, 2025

🧪 Testing

To try out this version of the SDK, run:

npm install 'https://pkg.stainless.com/s/sfc-nodes-typescript/8db0e2dbb16e522c0e6e8970b5e2f1ddf5ee7f6f/dist.tar.gz'

Expires: Thu, 21 Aug 2025 04:42:39 GMT

@stainless-app stainless-app Bot closed this Jul 22, 2025
@stainless-app stainless-app Bot deleted the release-please--branches--main--changes--next--components--nodes-sdk-alpha branch July 22, 2025 04:42
Comment on lines +13 to +32
name: publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: |
yarn install

- name: Publish to NPM
run: |
bash ./bin/publish-npm
env:
NPM_TOKEN: ${{ secrets.SFC_NODES_NPM_TOKEN || secrets.NPM_TOKEN }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 10 months ago

The optimal fix is to explicitly restrict the permissions granted to the GITHUB_TOKEN within this workflow. Since the workflow only requires read access to the repository contents (for the actions/checkout step), you can safely set permissions: contents: read at the top level of the workflow file (applies to all jobs). This ensures the workflow adheres to the principle of least privilege, reducing the risk of accidental or malicious repository changes via GITHUB_TOKEN. To implement this, add the following lines after the name field and before the on field in .github/workflows/publish-npm.yml:

permissions:
  contents: read

No additional imports, methods, or definitions are required.


Suggested changeset 1
.github/workflows/publish-npm.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml
--- a/.github/workflows/publish-npm.yml
+++ b/.github/workflows/publish-npm.yml
@@ -2,6 +2,8 @@
 # It can also be run manually to re-publish to NPM in case it failed for some reason.
 # You can run this workflow by navigating to https://www.github.com/sfcompute/nodes-typescript/actions/workflows/publish-npm.yml
 name: Publish NPM
+permissions:
+  contents: read
 on:
   workflow_dispatch:
 
EOF
@@ -2,6 +2,8 @@
# It can also be run manually to re-publish to NPM in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/sfcompute/nodes-typescript/actions/workflows/publish-npm.yml
name: Publish NPM
permissions:
contents: read
on:
workflow_dispatch:

Copilot is powered by AI and may make mistakes. Always verify output.
Unable to commit as this autofix suggestion is now outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant